package com.sgd.cli.pattern;

/**
 * <p>Title: 打开设备命令</p>
 * <p>Description: </p>
 *
 * @author su.gd
 * @date 2023-11-22
 */
public class TurnonCommand implements Command {
    private Device device;

    public TurnonCommand(Device device) {
        this.device = device;
    }

    @Override
    public void execute() {
        device.turnOn();
    }
}
